[INFO] cloning repository https://github.com/Mokosha/pbrt_rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Mokosha/pbrt_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMokosha%2Fpbrt_rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMokosha%2Fpbrt_rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 6ce0c65cebbf706a554aff2397fe5e1a85583181
[INFO] documenting Mokosha/pbrt_rust against nightly+rustdocflags=-Zunstable-options -wjson for pr-99919
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMokosha%2Fpbrt_rust" "/workspace/builds/worker-0/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/Mokosha/pbrt_rust on toolchain nightly
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/Mokosha/pbrt_rust
[INFO] finished tweaking git repo https://github.com/Mokosha/pbrt_rust
[INFO] tweaked toml for git repo https://github.com/Mokosha/pbrt_rust written to /workspace/builds/worker-0/source/Cargo.toml
[INFO] crate git repo https://github.com/Mokosha/pbrt_rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c16c6920f57900cdaddac60d1dab142a77fa7eec6df57222848cafd8adfb27f9
[INFO] running `Command { std: "docker" "start" "-a" "c16c6920f57900cdaddac60d1dab142a77fa7eec6df57222848cafd8adfb27f9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c16c6920f57900cdaddac60d1dab142a77fa7eec6df57222848cafd8adfb27f9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c16c6920f57900cdaddac60d1dab142a77fa7eec6df57222848cafd8adfb27f9", kill_on_drop: false }`
[INFO] [stdout] c16c6920f57900cdaddac60d1dab142a77fa7eec6df57222848cafd8adfb27f9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow -Zunstable-options -wjson" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "doc" "--frozen" "--no-deps" "--document-private-items" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2abe88ece77d00410155abd884059546f815dc72dd6e473eeb146de730b15cea
[INFO] running `Command { std: "docker" "start" "-a" "2abe88ece77d00410155abd884059546f815dc72dd6e473eeb146de730b15cea", kill_on_drop: false }`
[INFO] [stderr]     Checking pbrt_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]  Documenting pbrt_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0034]: multiple applicable items in scope
[INFO] [stdout]    --> src/bsdf/measured.rs:169:90
[INFO] [stdout]     |
[INFO] [stdout] 169 |         let remap = |v: f32, mx: f32, cnt: usize| { (((v / mx) * (cnt as f32)) as usize).clamp(0, cnt - 1) };
[INFO] [stdout]     |                                                                                          ^^^^^ multiple `clamp` found
[INFO] [stdout]     |
[INFO] [stdout] note: candidate #1 is defined in an impl of the trait `Clamp` for the type `T`
[INFO] [stdout]    --> src/utils/mod.rs:36:5
[INFO] [stdout]     |
[INFO] [stdout] 36  |     fn clamp(self, a: Self, b: Self) -> Self {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: candidate #2 is defined in an impl of the trait `Ord` for the type `usize`
[INFO] [stdout] help: disambiguate the associated function for candidate #1
[INFO] [stdout]     |
[INFO] [stdout] 169 |         let remap = |v: f32, mx: f32, cnt: usize| { Clamp::clamp((((v / mx) * (cnt as f32)) as usize), 0, cnt - 1) };
[INFO] [stdout]     |                                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] help: disambiguate the associated function for candidate #2
[INFO] [stdout]     |
[INFO] [stdout] 169 |         let remap = |v: f32, mx: f32, cnt: usize| { Ord::clamp((((v / mx) * (cnt as f32)) as usize), 0, cnt - 1) };
[INFO] [stdout]     |                                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0034]: multiple applicable items in scope
[INFO] [stdout]    --> src/primitive/aggregates/grid.rs:115:58
[INFO] [stdout]     |
[INFO] [stdout] 115 |             ((delta[0] * voxels_per_unit_dist) as usize).clamp(1, 64),
[INFO] [stdout]     |                                                          ^^^^^ multiple `clamp` found
[INFO] [stdout]     |
[INFO] [stdout] note: candidate #1 is defined in an impl of the trait `Clamp` for the type `T`
[INFO] [stdout]    --> src/utils/mod.rs:36:5
[INFO] [stdout]     |
[INFO] [stdout] 36  |     fn clamp(self, a: Self, b: Self) -> Self {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: candidate #2 is defined in an impl of the trait `Ord` for the type `usize`
[INFO] [stdout] help: disambiguate the associated function for candidate #1
[INFO] [stdout]     |
[INFO] [stdout] 115 |             Clamp::clamp(((delta[0] * voxels_per_unit_dist) as usize), 1, 64),
[INFO] [stdout]     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] help: disambiguate the associated function for candidate #2
[INFO] [stdout]     |
[INFO] [stdout] 115 |             Ord::clamp(((delta[0] * voxels_per_unit_dist) as usize), 1, 64),
[INFO] [stdout]     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0034]: multiple applicable items in scope
[INFO] [stdout]    --> src/primitive/aggregates/grid.rs:116:58
[INFO] [stdout]     |
[INFO] [stdout] 116 |             ((delta[1] * voxels_per_unit_dist) as usize).clamp(1, 64),
[INFO] [stdout]     |                                                          ^^^^^ multiple `clamp` found
[INFO] [stdout]     |
[INFO] [stdout] note: candidate #1 is defined in an impl of the trait `Clamp` for the type `T`
[INFO] [stdout]    --> src/utils/mod.rs:36:5
[INFO] [stdout]     |
[INFO] [stdout] 36  |     fn clamp(self, a: Self, b: Self) -> Self {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: candidate #2 is defined in an impl of the trait `Ord` for the type `usize`
[INFO] [stdout] help: disambiguate the associated function for candidate #1
[INFO] [stdout]     |
[INFO] [stdout] 116 |             Clamp::clamp(((delta[1] * voxels_per_unit_dist) as usize), 1, 64),
[INFO] [stdout]     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] help: disambiguate the associated function for candidate #2
[INFO] [stdout]     |
[INFO] [stdout] 116 |             Ord::clamp(((delta[1] * voxels_per_unit_dist) as usize), 1, 64),
[INFO] [stdout]     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0034]: multiple applicable items in scope
[INFO] [stdout]    --> src/primitive/aggregates/grid.rs:117:58
[INFO] [stdout]     |
[INFO] [stdout] 117 |             ((delta[2] * voxels_per_unit_dist) as usize).clamp(1, 64)];
[INFO] [stdout]     |                                                          ^^^^^ multiple `clamp` found
[INFO] [stdout]     |
[INFO] [stdout] note: candidate #1 is defined in an impl of the trait `Clamp` for the type `T`
[INFO] [stdout]    --> src/utils/mod.rs:36:5
[INFO] [stdout]     |
[INFO] [stdout] 36  |     fn clamp(self, a: Self, b: Self) -> Self {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: candidate #2 is defined in an impl of the trait `Ord` for the type `usize`
[INFO] [stdout] help: disambiguate the associated function for candidate #1
[INFO] [stdout]     |
[INFO] [stdout] 117 |             Clamp::clamp(((delta[2] * voxels_per_unit_dist) as usize), 1, 64)];
[INFO] [stdout]     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] help: disambiguate the associated function for candidate #2
[INFO] [stdout]     |
[INFO] [stdout] 117 |             Ord::clamp(((delta[2] * voxels_per_unit_dist) as usize), 1, 64)];
[INFO] [stdout]     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0034]: multiple applicable items in scope
[INFO] [stdout]    --> src/primitive/aggregates/grid.rs:190:14
[INFO] [stdout]     |
[INFO] [stdout] 190 |             .clamp(0, self.num_voxels[axis] - 1)
[INFO] [stdout]     |              ^^^^^ multiple `clamp` found
[INFO] [stdout]     |
[INFO] [stdout] note: candidate #1 is defined in an impl of the trait `Clamp` for the type `T`
[INFO] [stdout]    --> src/utils/mod.rs:36:5
[INFO] [stdout]     |
[INFO] [stdout] 36  |     fn clamp(self, a: Self, b: Self) -> Self {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: candidate #2 is defined in an impl of the trait `Ord` for the type `usize`
[INFO] [stdout] help: disambiguate the associated function for candidate #1
[INFO] [stdout]     |
[INFO] [stdout] 189 |         Clamp::clamp((((p[axis] - self.bounds.p_min[axis]) * self.inv_width[axis]) as usize), 0, self.num_voxels[axis] - 1)
[INFO] [stdout]     |
[INFO] [stdout] help: disambiguate the associated function for candidate #2
[INFO] [stdout]     |
[INFO] [stdout] 189 |         Ord::clamp((((p[axis] - self.bounds.p_min[axis]) * self.inv_width[axis]) as usize), 0, self.num_voxels[axis] - 1)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0034]: multiple applicable items in scope
[INFO] [stdout]   --> src/texture/imagemap.rs:86:36
[INFO] [stdout]    |
[INFO] [stdout] 86 |             ImageWrap::Clamp => ft.clamp(0, (dim-1) as i32),
[INFO] [stdout]    |                                    ^^^^^ multiple `clamp` found
[INFO] [stdout]    |
[INFO] [stdout] note: candidate #1 is defined in an impl of the trait `Clamp` for the type `T`
[INFO] [stdout]   --> src/utils/mod.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 36 |     fn clamp(self, a: Self, b: Self) -> Self {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: candidate #2 is defined in an impl of the trait `Ord` for the type `i32`
[INFO] [stdout] help: disambiguate the associated function for candidate #1
[INFO] [stdout]    |
[INFO] [stdout] 86 |             ImageWrap::Clamp => Clamp::clamp(ft, 0, (dim-1) as i32),
[INFO] [stdout]    |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] help: disambiguate the associated function for candidate #2
[INFO] [stdout]    |
[INFO] [stdout] 86 |             ImageWrap::Clamp => Ord::clamp(ft, 0, (dim-1) as i32),
[INFO] [stdout]    |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0034]: multiple applicable items in scope
[INFO] [stdout]    --> src/texture/imagemap.rs:149:33
[INFO] [stdout]     |
[INFO] [stdout] 149 |         ImageWrap::Clamp => (_s.clamp(0, (level.width() - 1) as i32),
[INFO] [stdout]     |                                 ^^^^^ multiple `clamp` found
[INFO] [stdout]     |
[INFO] [stdout] note: candidate #1 is defined in an impl of the trait `Clamp` for the type `T`
[INFO] [stdout]    --> src/utils/mod.rs:36:5
[INFO] [stdout]     |
[INFO] [stdout] 36  |     fn clamp(self, a: Self, b: Self) -> Self {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: candidate #2 is defined in an impl of the trait `Ord` for the type `i32`
[INFO] [stdout] help: disambiguate the associated function for candidate #1
[INFO] [stdout]     |
[INFO] [stdout] 149 |         ImageWrap::Clamp => (Clamp::clamp(_s, 0, (level.width() - 1) as i32),
[INFO] [stdout]     |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] help: disambiguate the associated function for candidate #2
[INFO] [stdout]     |
[INFO] [stdout] 149 |         ImageWrap::Clamp => (Ord::clamp(_s, 0, (level.width() - 1) as i32),
[INFO] [stdout]     |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0034]: multiple applicable items in scope
[INFO] [stdout]    --> src/texture/imagemap.rs:150:33
[INFO] [stdout]     |
[INFO] [stdout] 150 | ...                   _t.clamp(0, (level.height() - 1) as i32)),
[INFO] [stdout]     |                          ^^^^^ multiple `clamp` found
[INFO] [stdout]     |
[INFO] [stdout] note: candidate #1 is defined in an impl of the trait `Clamp` for the type `T`
[INFO] [stdout]    --> src/utils/mod.rs:36:5
[INFO] [stdout]     |
[INFO] [stdout] 36  |     fn clamp(self, a: Self, b: Self) -> Self {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: candidate #2 is defined in an impl of the trait `Ord` for the type `i32`
[INFO] [stdout] help: disambiguate the associated function for candidate #1
[INFO] [stdout]     |
[INFO] [stdout] 150 |                              Clamp::clamp(_t, 0, (level.height() - 1) as i32)),
[INFO] [stdout]     |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] help: disambiguate the associated function for candidate #2
[INFO] [stdout]     |
[INFO] [stdout] 150 |                              Ord::clamp(_t, 0, (level.height() - 1) as i32)),
[INFO] [stdout]     |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0034]: multiple applicable items in scope
[INFO] [stdout]    --> src/texture/imagemap.rs:241:28
[INFO] [stdout]     |
[INFO] [stdout] 241 |         let level = _level.clamp(0, self.levels() - 1);
[INFO] [stdout]     |                            ^^^^^ multiple `clamp` found
[INFO] [stdout]     |
[INFO] [stdout] note: candidate #1 is defined in an impl of the trait `Clamp` for the type `T`
[INFO] [stdout]    --> src/utils/mod.rs:36:5
[INFO] [stdout]     |
[INFO] [stdout] 36  |     fn clamp(self, a: Self, b: Self) -> Self {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: candidate #2 is defined in an impl of the trait `Ord` for the type `usize`
[INFO] [stdout] help: disambiguate the associated function for candidate #1
[INFO] [stdout]     |
[INFO] [stdout] 241 |         let level = Clamp::clamp(_level, 0, self.levels() - 1);
[INFO] [stdout]     |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] help: disambiguate the associated function for candidate #2
[INFO] [stdout]     |
[INFO] [stdout] 241 |         let level = Ord::clamp(_level, 0, self.levels() - 1);
[INFO] [stdout]     |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0034]: multiple applicable items in scope
[INFO] [stdout]   --> src/volume/density/volume_grid.rs:47:20
[INFO] [stdout]    |
[INFO] [stdout] 47 |         let x = _x.clamp(0, (self.nx - 1) as i32) as usize;
[INFO] [stdout]    |                    ^^^^^ multiple `clamp` found
[INFO] [stdout]    |
[INFO] [stdout] note: candidate #1 is defined in an impl of the trait `Clamp` for the type `T`
[INFO] [stdout]   --> src/utils/mod.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 36 |     fn clamp(self, a: Self, b: Self) -> Self {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: candidate #2 is defined in an impl of the trait `Ord` for the type `i32`
[INFO] [stdout] help: disambiguate the associated function for candidate #1
[INFO] [stdout]    |
[INFO] [stdout] 47 |         let x = Clamp::clamp(_x, 0, (self.nx - 1) as i32) as usize;
[INFO] [stdout]    |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] help: disambiguate the associated function for candidate #2
[INFO] [stdout]    |
[INFO] [stdout] 47 |         let x = Ord::clamp(_x, 0, (self.nx - 1) as i32) as usize;
[INFO] [stdout]    |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0034]: multiple applicable items in scope
[INFO] [stdout]   --> src/volume/density/volume_grid.rs:48:20
[INFO] [stdout]    |
[INFO] [stdout] 48 |         let y = _y.clamp(0, (self.ny - 1) as i32) as usize;
[INFO] [stdout]    |                    ^^^^^ multiple `clamp` found
[INFO] [stdout]    |
[INFO] [stdout] note: candidate #1 is defined in an impl of the trait `Clamp` for the type `T`
[INFO] [stdout]   --> src/utils/mod.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 36 |     fn clamp(self, a: Self, b: Self) -> Self {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: candidate #2 is defined in an impl of the trait `Ord` for the type `i32`
[INFO] [stdout] help: disambiguate the associated function for candidate #1
[INFO] [stdout]    |
[INFO] [stdout] 48 |         let y = Clamp::clamp(_y, 0, (self.ny - 1) as i32) as usize;
[INFO] [stdout]    |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] help: disambiguate the associated function for candidate #2
[INFO] [stdout]    |
[INFO] [stdout] 48 |         let y = Ord::clamp(_y, 0, (self.ny - 1) as i32) as usize;
[INFO] [stdout]    |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0034]: multiple applicable items in scope
[INFO] [stdout]   --> src/volume/density/volume_grid.rs:49:20
[INFO] [stdout]    |
[INFO] [stdout] 49 |         let z = _z.clamp(0, (self.nz - 1) as i32) as usize;
[INFO] [stdout]    |                    ^^^^^ multiple `clamp` found
[INFO] [stdout]    |
[INFO] [stdout] note: candidate #1 is defined in an impl of the trait `Clamp` for the type `T`
[INFO] [stdout]   --> src/utils/mod.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 36 |     fn clamp(self, a: Self, b: Self) -> Self {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: candidate #2 is defined in an impl of the trait `Ord` for the type `i32`
[INFO] [stdout] help: disambiguate the associated function for candidate #1
[INFO] [stdout]    |
[INFO] [stdout] 49 |         let z = Clamp::clamp(_z, 0, (self.nz - 1) as i32) as usize;
[INFO] [stdout]    |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] help: disambiguate the associated function for candidate #2
[INFO] [stdout]    |
[INFO] [stdout] 49 |         let z = Ord::clamp(_z, 0, (self.nz - 1) as i32) as usize;
[INFO] [stdout]    |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 12 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0034`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `pbrt_rust` due to 13 previous errors
[INFO] running `Command { std: "docker" "inspect" "2abe88ece77d00410155abd884059546f815dc72dd6e473eeb146de730b15cea", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2abe88ece77d00410155abd884059546f815dc72dd6e473eeb146de730b15cea", kill_on_drop: false }`
[INFO] [stdout] 2abe88ece77d00410155abd884059546f815dc72dd6e473eeb146de730b15cea
